global OnceCheck, CurrVideo, AfterFavorite, Choice, RecipeNum
if the visible of sprite 31 = 1 then
set the cursor of sprite 32 to 1
else
if the visible of sprite 31 = 0 then
set the cursor of sprite 32 to 0
end if
end if
if the type of member 200 of castLib "videos" = #digitalVideo then
set the cursor of sprite 17 to 0
end if
if OnceCheck = 0 then
cursor(-1)
set OnceCheck to 1
repeat with i = 4 to 6
set the cursor of sprite i to [34, 35]
set the cursor of sprite (i + 10) to [34, 35]
end repeat
set the cursor of sprite 3 to [34, 35]
set the cursor of sprite 35 to [34, 35]
if the visible of sprite 16 then
set the visible of sprite 16 to 0
end if
repeat with i = 19 to 29
if the visible of sprite i then
set the visible of sprite i to 0
end if
end repeat
repeat with i = 31 to 35
if the visible of sprite i then
set the visible of sprite i to 0
end if
end repeat
if the visible of sprite i then
set the visible of sprite 38 to 0
end if
if the visible of sprite i then
set the visible of sprite 37 to 0
end if
set CurrVideo to line RecipeNum of field "videoLib"
repeat with i = 3 to 8
puppetSprite(i, 1)
end repeat
set x to the number of lines in the text of member ("recipe" & RecipeNum)
set tarHow to line x - 3 of the text of member ("recipe" & RecipeNum)
if the name of member value(RecipeNum) of castLib "small picts" = "noPict" then
set the member of sprite 7 to member "mezze"
else
set the member of sprite 7 to member RecipeNum of castLib "small picts"
end if
puppetSprite(36, 1)
puppetSprite(17, 1)
set howVec to ["Long", "Short", "Shot", "Hot"]
set howShown to getPos(howVec, tarHow)
set the visible of sprite (25 + howShown) to 1
cursor(0)
set the visible of sprite 16 to 0
forget(window "notes")
windowRoutine()
if (CurrVideo <> " ") and (CurrVideo <> EMPTY) then
DoMovie(CurrVideo)
else
set the member of sprite 36 to member RecipeNum of castLib "slideNW"
set the visible of sprite 36 to 1
set the visible of sprite 17 to 0
end if
if (AfterFavorite = 0) and (CurrVideo <> " ") and (CurrVideo <> EMPTY) then
set the sound of member 200 of castLib "videos" to 0
set the movieRate of sprite 41 to 0.001
else
if line RecipeNum of field "names" <> "choice" then
set Choice to line RecipeNum of field "names"
end if
end if
end if
if (the timer > 120) and (OnceCheck = 1) and (AfterFavorite = 0) and (CurrVideo <> " ") and (CurrVideo <> EMPTY) and (the type of member 200 of castLib "videos" = #digitalVideo) then
set the movieRate of sprite 41 to 1
set the sound of member 200 of castLib "videos" to 1
set OnceCheck to 2
end if
go(the frame)
end
on mouseDown
global checkPress, CurrVideo
set checkPress to the clickOn
set bDown to the clickOn
if (bDown > 2) and (bDown < 7) then
set the cursor of sprite 17 to [34, 35]
set the visible of sprite 36 to 0
if (CurrVideo = " ") or (CurrVideo = EMPTY) then
set the visible of sprite 17 to 1
end if
set the member of sprite bDown to member ("PrepBtn" & bDown - 2)
else
if bDown = 24 then
set the member of sprite 24 to member "shopDelete" of castLib "objects"
else
if bDown = 25 then
set the member of sprite 25 to member "shopClear" of castLib "objects"
else
if bDown > 41 then
buttonPressedDown(bDown, "objects")
end if
end if
end if
end if
updateStage()
if ((bDown > 2) and (bDown < 7)) or (bDown = 25) or (bDown = 24) or (bDown > 41) then